package cn.hzxs.zjn.studentmanagement.sevice.serviceImpl;

import cn.hzxs.zjn.studentmanagement.dao.ScoreMapper;
import cn.hzxs.zjn.studentmanagement.domain.Score;
import cn.hzxs.zjn.studentmanagement.sevice.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author: Zjn ; Bring it on !!!
 * @Date: 2021/3/29 0029 12:41
 * Note:
 */
@Service("ScoreService")
public class ScoreServiceImpl implements ScoreService {
    @Autowired
    ScoreMapper scoreMapper;

    @Override
    public List<Score> getScoreByTime(String Time) {
        return scoreMapper.getScoreByTime(Time);
    }

    @Override
    public List<Map> performance(Integer userId) {
        return scoreMapper.performance(userId);
    }


    @Override
    public Integer countuser() {
        return scoreMapper.countuser();
    }

    @Override
    public List<Integer> getUserId() {
        return scoreMapper.getUserId();
    }

    @Override
    public Map<Object,Object> getUserInfo(Integer userId) {
        return scoreMapper.getUserInfo(userId);
    }

    @Override
    public void submit(Score score) {
        scoreMapper.submit(score);
    }
}
